<template>
<div class="custom-card">
  <h2 class="card-title">{{ title }}</h2>
  <div class="content-wrapper">
    <img :src="imageSrc" alt="描述图片" class="card-image">
    <p class="card-content">{{ content }}</p>
  </div>
</div>

</template>

<script>
export default {
  name: 'CustomCard',
  props: {
    title: {
      type: String,
      required: true
    },
    imageSrc: {
      type: String,
      required: true
    },
    content: {
      type: String,
      required: true
    }
  }
}
</script>

<style scoped>

.custom-card {
  background: rgb(3, 5, 12);
  padding: 16px;
  border-radius: 8px;
  margin-bottom: 16px;

}
.card-title {
  background: linear-gradient(0.00deg, rgba(96, 142, 191, 0),rgba(82, 143, 204, 0.35) 100%);
  color: rgba(255, 255, 255, 1);

  font-family: Source Han Sans CN,serif;
  font-size: 36px;
  font-weight: 600;
  line-height: 54px;
  letter-spacing: 1.78px;
  text-align: justify;
}
.content-wrapper {
  display: flex;
  align-items: flex-start; /* 图片和文字顶部对齐 */
}

.card-image {
  max-width: 300px; /* 控制图片宽度 */
  height: auto;
  margin-right: 20px; /* 图片与文字间距 */
}

.card-content {
  color: rgba(255, 255, 255, 1);

  font-family: Source Han Sans CN,serif;
  font-size: 24px;
  font-weight: 600;
  line-height: 36px;
  letter-spacing: 1.78px;
  text-align: justify;
  margin: 10px 20px;
}

.card-image1 {
  max-width: 100%;
  height: auto;
  margin-bottom: 8px;
}
</style>
